package cn.rmc.basic.service;

import cn.rmc.basic.query.BaseQuery;
import cn.rmc.basic.util.Pagelist;
import cn.rmc.org.domain.Department;
import cn.rmc.org.query.DepartmentQuery;

import java.util.List;

public interface IBaseService<T> {
    void add(T t);

    void upadte(T t);

    void delete(Long id );

    T getById(Long id );

    List<T> getAll();

    Pagelist<T> query(BaseQuery query);

    void delpatch(List<Long> ids);
}
